gtk4.git
11 years agostylecontext: Don't crah when invalidate() is called on saved context
Benjamin Otte [Wed, 4 Feb 2015 20:08:54 +0000 (21:08 +0100)]
stylecontext: Don't crah when invalidate() is called on saved context

We need to invalidate the root node, not the current one.
Fixes crashes on startup of eclipse.

Testcase included.

https://bugzilla.redhat.com/show_bug.cgi?id=1185828

11 years agostylecontext: Do not have a default style
Benjamin Otte [Wed, 4 Feb 2015 17:26:32 +0000 (18:26 +0100)]
stylecontext: Do not have a default style

A bunch of applications expect the style to be as close to the actual
style as possible even during creation of the widget. Try to accomodate
these apps.

This reverses the effects of 27285f1f0fb00bb4507a8bf3e426bef940ae41af

https://bugzilla.gnome.org/show_bug.cgi?id=743395
https://bugzilla.redhat.com/show_bug.cgi?id=1185999

11 years agocss: Having a static style per screen isn't useful
Benjamin Otte [Wed, 4 Feb 2015 17:20:33 +0000 (18:20 +0100)]
css: Having a static style per screen isn't useful

Just have one static style for everything.

11 years agoAdd support for loading gtk3-only modules
Lars Uebernickel [Tue, 3 Feb 2015 10:01:29 +0000 (11:01 +0100)]
Add support for loading gtk3-only modules

Introduce GTK3_MODULES environment variable for modules that don't work
in gtk3. The list of modules is now $GTK3_MODULES:$GTK_MODULES.

https://bugzilla.gnome.org/show_bug.cgi?id=743917

11 years agoMSVC Builds: Rename "install" Projects
Chun-wei Fan [Wed, 4 Feb 2015 05:04:39 +0000 (13:04 +0800)]
MSVC Builds: Rename "install" Projects

Rename the "install" projects as "gtk-install" as we are planning to have a
grand solution file that incorporates all project files of the GTK+ stack
with their dependencies, to make it easier for people to build GTK+ from
scratch from a stock installation of Visual Studio 2008 and later.

11 years agoMSVC Builds: "Install" autocleanup headers
Chun-wei Fan [Wed, 4 Feb 2015 04:42:24 +0000 (12:42 +0800)]
MSVC Builds: "Install" autocleanup headers

These are public headers that are needed in the package, although the
macros are essentially no-ops for Visual Studio builds currently.

11 years agoAdd reference to HowDoI and getting-started
Bastian Ilsø [Mon, 2 Feb 2015 07:13:28 +0000 (08:13 +0100)]
Add reference to HowDoI and getting-started

11 years agoBump version to 3.15.5
Emmanuele Bassi [Mon, 2 Feb 2015 16:51:14 +0000 (16:51 +0000)]
Bump version to 3.15.5

We need the bump in order to allow projects to depend on newly added
API.

11 years agox11: Detect libinput touchpads
Carlos Garnacho [Sun, 1 Feb 2015 11:08:04 +0000 (12:08 +0100)]
x11: Detect libinput touchpads

These aren't reported as XIDependentTouch devices, so make it poke a
property that's specific to touchpads managed by the libinput driver.

11 years agogtkx: add missing header
Víctor Manuel Jáquez Leal [Mon, 2 Feb 2015 11:54:37 +0000 (12:54 +0100)]
gtkx: add missing header

The header file gdk/x11/gdkx-autocleanups.h is not installed, but
it is required by gdkx.h

https://bugzilla.gnome.org/show_bug.cgi?id=743640

11 years agoscrolledwindow: Don't hide indicators if leaving towards a child
Carlos Garnacho [Mon, 2 Feb 2015 11:58:56 +0000 (12:58 +0100)]
scrolledwindow: Don't hide indicators if leaving towards a child

In that case the scrolledwindow still gets events through the captured
handler, and can thus still control visibility, so hiding the indicators
in this case can only lead to flashing.

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 2 Feb 2015 10:58:00 +0000 (11:58 +0100)]
Updated Spanish translation

11 years agogtkx: Add support for g_autoptr()
Alexander Larsson [Mon, 2 Feb 2015 08:34:43 +0000 (09:34 +0100)]
gtkx: Add support for g_autoptr()

https://bugzilla.gnome.org/show_bug.cgi?id=743640

11 years agogtkunixprint: Add support for g_autoptr()
Alexander Larsson [Mon, 2 Feb 2015 08:32:45 +0000 (09:32 +0100)]
gtkunixprint: Add support for g_autoptr()

https://bugzilla.gnome.org/show_bug.cgi?id=743640

11 years agogtk: Add support for g_autoptr()
Alexander Larsson [Mon, 2 Feb 2015 08:29:54 +0000 (09:29 +0100)]
gtk: Add support for g_autoptr()

https://bugzilla.gnome.org/show_bug.cgi?id=743640

11 years agogdk: Add support for g_autoptr()
Alexander Larsson [Mon, 2 Feb 2015 08:28:22 +0000 (09:28 +0100)]
gdk:  Add support for g_autoptr()

https://bugzilla.gnome.org/show_bug.cgi?id=743640

11 years agogtkstylecontext.c: Include fallback-c89.c
Chun-wei Fan [Mon, 2 Feb 2015 07:00:45 +0000 (15:00 +0800)]
gtkstylecontext.c: Include fallback-c89.c

round() is now being used in the function, so that compilers without
round() in their math.h is supported.

11 years agoBe safe against stray booleans
Matthias Clasen [Sun, 1 Feb 2015 22:30:10 +0000 (17:30 -0500)]
Be safe against stray booleans

Since gboolean is a typedef for int, the compiler won't complain
about gdk_window_set_event_compression (w, 2). So, make it work.

https://bugzilla.gnome.org/show_bug.cgi?id=742566

11 years agoPlug another memory leak in plugman
Matthias Clasen [Sun, 1 Feb 2015 16:07:12 +0000 (11:07 -0500)]
Plug another memory leak in plugman

11 years agoplugman: Fix leaking attribute string
Felix Riemann [Sat, 31 Jan 2015 15:17:24 +0000 (16:17 +0100)]
plugman: Fix leaking attribute string

https://bugzilla.gnome.org/show_bug.cgi?id=743770

11 years agoscrolledwindow: add a new edge-reached signal
Cosimo Cecchi [Sun, 25 Jan 2015 11:53:49 +0000 (11:53 +0000)]
scrolledwindow: add a new edge-reached signal

This will be used to just detect when an edge of the scrollable area is
reached - as opposed to the edge-overshot signal that is emitted when
the user scrolls past the edge.

https://bugzilla.gnome.org/show_bug.cgi?id=742848

11 years agoReduce symbolic icon warnings to a debug message
Matthias Clasen [Sat, 31 Jan 2015 18:33:42 +0000 (13:33 -0500)]
Reduce symbolic icon warnings to a debug message

These icons are out there in the wild, and the warning causes
distcheck to fail. So, reduce it to a debug message.

11 years agoUpdated Slovak translation
Dušan Kazik [Sat, 31 Jan 2015 11:07:59 +0000 (11:07 +0000)]
Updated Slovak translation

11 years agoimage: Optimize non-resize changes
Matthias Clasen [Sat, 31 Jan 2015 04:32:50 +0000 (23:32 -0500)]
image: Optimize non-resize changes

Suggested by Owen in

https://bugzilla.gnome.org/show_bug.cgi?id=613833

11 years agostylecontext: Use old rounding for get_padding/border/margin()
Benjamin Otte [Sat, 31 Jan 2015 01:25:18 +0000 (02:25 +0100)]
stylecontext: Use old rounding for get_padding/border/margin()

610f7e8f70ce165e04a4cdc3fd20b560f500b925 changed the way we query those
values for performance reasons but didn't copy the rounding used.

Fixes border-half-pixel reftest.

11 years agoglarea: Remove useless function
Benjamin Otte [Sat, 31 Jan 2015 00:55:04 +0000 (01:55 +0100)]
glarea: Remove useless function

The function should have been gone in
27cf0fa34c3a51ddb50391f21aaf2e3984d6dddb

11 years agoroundedbox: Treat path segments differently
Benjamin Otte [Thu, 22 Jan 2015 14:47:36 +0000 (15:47 +0100)]
roundedbox: Treat path segments differently

If a side of the box is 0px wide, make the corners owned by the adjacent
sides. This avoids spilling over of unwanted colors from the 0-width
side into the corner.

This is the fix that should actually have been part of
7e5ac3a58d0362080c4eb7c9b68ead99674c7b87 but my amazing amending skills
got rid of it when amending the test.

11 years agoUpdates for 3.15.5
Matthias Clasen [Fri, 30 Jan 2015 23:58:41 +0000 (18:58 -0500)]
Updates for 3.15.5

11 years agoFix an oversight
Matthias Clasen [Fri, 30 Jan 2015 23:42:06 +0000 (18:42 -0500)]
Fix an oversight

Commit ff256956b2072cd422 introduced a frame_clock_events_paused
flag, but only ever set it to TRUE, instead of unsetting it when
events are resumed. This was leading to assertion failures in
_gdk_display_unpause_events().

11 years agoGtkSettings: Consider default settings for font hinting and antialias
Matias De lellis [Wed, 3 Dec 2014 00:09:38 +0000 (21:09 -0300)]
GtkSettings: Consider default settings for font hinting and antialias

Arrange things so that gtk-xdg-hinting==-1 and gtk-xfg-antialias==-1
end up as CAIRO_HINT_STYLE_DEFAULT and CAIRO_ANTIALIAS_DEFAULT in the
cairo font options.

This will not change anything on Linux desktops where xsettings will
always provide values different from -1. But on other platforms, we
can benefit from getting the platform-specific defaults in cairo.

Based on the first patch in:
https://bugzilla.gnome.org/show_bug.cgi?id=735316

11 years agoGetting started: BIG update of basics section
Bastian Ilsø [Wed, 28 Jan 2015 18:43:45 +0000 (18:43 +0000)]
Getting started: BIG update of basics section

https://bugzilla.gnome.org/show_bug.cgi?id=743680

11 years agoResume events when disconnecting from a frame clock
Tom Hughes [Mon, 26 Jan 2015 21:52:00 +0000 (21:52 +0000)]
Resume events when disconnecting from a frame clock

If we are disconnecting from a frame clock that has paused event
processing and hasn't issued a resume yet make sure we resume the
events or they will stay blocked forever.

https://bugzilla.gnome.org/show_bug.cgi?id=742636

11 years agoUpdated Hungarian translation
Balázs Úr [Fri, 30 Jan 2015 21:29:35 +0000 (21:29 +0000)]
Updated Hungarian translation

11 years agoUpdated Hungarian translation
Balázs Úr [Fri, 30 Jan 2015 21:26:29 +0000 (21:26 +0000)]
Updated Hungarian translation

11 years agoRobustness fixes for drag cancel animation
Matthias Clasen [Fri, 30 Jan 2015 11:07:34 +0000 (06:07 -0500)]
Robustness fixes for drag cancel animation

gtk_widget_get_frame_clock() can return NULL. Deal with that
by silently stopping the drag cancel animation in this case.

11 years agotestnotebookdnd: Defer deletion to an idle
Matthias Clasen [Fri, 30 Jan 2015 14:20:04 +0000 (09:20 -0500)]
testnotebookdnd: Defer deletion to an idle

The code here was always a bit buggy: We removed the tab from
the notebook in a ::drag-data-received handler. But with
GTK_DEST_DEFAULT_DROP, that signal is emitted before we inform
the source side that the drag is finished. With its improved drag
handling, GtkNotebook now interprets this as a 'spontaneous'
removal of the tab being dragged, and cancels the drag, leading
to an unwanted cancel animation.

The easiest fix is to just defer the tab removal to an idle.

11 years agonotebook: Protect removal-from-within
Matthias Clasen [Fri, 30 Jan 2015 14:26:04 +0000 (09:26 -0500)]
notebook: Protect removal-from-within

When a tab is dropped, we have to remove it from the notebook to
insert it elsewhere. This is expected part of the tab dnd operation,
and we need to differentiate it from 'spontaneous' removals which
cause us to cancel the drag operation.

11 years agonotebook: Make dnd safe against tab disappearance
Matthias Clasen [Fri, 30 Jan 2015 04:51:26 +0000 (23:51 -0500)]
notebook: Make dnd safe against tab disappearance

when the dragged tab is being removed during the drag operation,
we need to cancel the drag. To do so, we have to keep around
a reference to the drag context.

This should fix
https://bugzilla.gnome.org/show_bug.cgi?id=732051

11 years agonotebook: Make reordering safe for tab disappearance
Matthias Clasen [Fri, 30 Jan 2015 04:48:06 +0000 (23:48 -0500)]
notebook: Make reordering safe for tab disappearance

If the dragged tab is removed during reordering, we need to
call gtk_notebook_stop_reorder(), to clean up and bring the
remaining tabs back in order.

11 years agodnd: Allow programmatic drag cancellation
Matthias Clasen [Fri, 30 Jan 2015 04:49:48 +0000 (23:49 -0500)]
dnd: Allow programmatic drag cancellation

Add a gtk_drag_cancel() function that can be used on the
source side to cancel an ongoing drag operation. This can
be useful, e.g. if the data that is being dragged becomes
unavailable.

11 years agodnd: Make dest side safe against destroy
Matthias Clasen [Fri, 30 Jan 2015 04:45:28 +0000 (23:45 -0500)]
dnd: Make dest side safe against destroy

Use a weak pointer to clean up when the current drag destination
gets destroyed.

11 years agofile chooser button: Make dnd work as expected
Matthias Clasen [Thu, 29 Jan 2015 03:36:47 +0000 (22:36 -0500)]
file chooser button: Make dnd work as expected

Update the button contents when accepting a drop.

https://bugzilla.gnome.org/show_bug.cgi?id=743451

11 years agoUpdated Icelandic translation
Sveinn í Felli [Thu, 29 Jan 2015 15:37:35 +0000 (15:37 +0000)]
Updated Icelandic translation

11 years agoAdwaita: add comments
Lapo Calamandrei [Thu, 29 Jan 2015 10:34:01 +0000 (11:34 +0100)]
Adwaita: add comments

11 years agoAdwaita: undershoot simplification and tweaks
Lapo Calamandrei [Thu, 29 Jan 2015 09:49:59 +0000 (10:49 +0100)]
Adwaita: undershoot simplification and tweaks

11 years agofile chooser: Unset sidebar during search
Matthias Clasen [Wed, 28 Jan 2015 23:26:42 +0000 (18:26 -0500)]
file chooser: Unset sidebar during search

It is a bit misleading to have one of the places in the sidebar
selected while in search mode, since the search is not relative
to any location. So, unset the sidebar selection when we enter
search mode.

11 years agoplaces sidebar: Make a function NULL-safe
Matthias Clasen [Wed, 28 Jan 2015 23:25:32 +0000 (18:25 -0500)]
places sidebar: Make a function NULL-safe

gtk_places_sidebar_set_location's location argument is documented
as allow-none, but if one actually passes NULL, a warning results.
Fix that.

11 years agofile chooser: Unify search mode leaving
Matthias Clasen [Wed, 28 Jan 2015 23:21:18 +0000 (18:21 -0500)]
file chooser: Unify search mode leaving

Make all ways to get out of search mode go through the same
code path, so we always populate the list.

11 years agofile chooser: Fix key bindings
Matthias Clasen [Wed, 28 Jan 2015 23:17:51 +0000 (18:17 -0500)]
file chooser: Fix key bindings

Key press handlers must chain up for key bindings to work.

11 years agofile chooser: Load a directory when leaving search
Matthias Clasen [Wed, 28 Jan 2015 23:15:19 +0000 (18:15 -0500)]
file chooser: Load a directory when leaving search

Ensure that some folder contents are shown in
the list when we leave search mode.

https://bugzilla.gnome.org/show_bug.cgi?id=743659

11 years agofile chooser: Don't switch too eagerly to search mode
Matthias Clasen [Wed, 28 Jan 2015 22:01:30 +0000 (17:01 -0500)]
file chooser: Don't switch too eagerly to search mode

If the search entry doesn't consume the key event, don't
change to search mode. Otherwise, we interfere e.g. with
Ctrl and Shift keys for selection.

https://bugzilla.gnome.org/show_bug.cgi?id=743660

11 years agoFix VA marshaller for GtkWidget's "event-after" signal
Garrett Regier [Tue, 27 Jan 2015 17:22:26 +0000 (09:22 -0800)]
Fix VA marshaller for GtkWidget's "event-after" signal

Just a copy and paste typo from the "event" signal.

https://bugzilla.gnome.org/show_bug.cgi?id=743593
Signed-off-by: Garrett Regier <garrettregier@gmail.com>
11 years agoGet started: port example-0.c to GtkApplication
Bastian Ilsø [Wed, 28 Jan 2015 11:39:01 +0000 (11:39 +0000)]
Get started: port example-0.c to GtkApplication

https://bugzilla.gnome.org/show_bug.cgi?id=743638

11 years agoGtkAboutDialog: Fix crash on link click
Christian Persch [Tue, 27 Jan 2015 12:37:15 +0000 (13:37 +0100)]
GtkAboutDialog: Fix crash on link click

https://bugzilla.gnome.org/show_bug.cgi?id=743592

11 years agofile chooser: Make Escape go out of search mode
Matthias Clasen [Wed, 28 Jan 2015 21:06:02 +0000 (16:06 -0500)]
file chooser: Make Escape go out of search mode

This works in most other places where we have search,
and is the expected behavior.

11 years agofile chooser: Simplify search entry callback
Matthias Clasen [Wed, 28 Jan 2015 21:02:03 +0000 (16:02 -0500)]
file chooser: Simplify search entry callback

11 years agofile chooser: Drop unused callbacks
Matthias Clasen [Wed, 28 Jan 2015 20:57:12 +0000 (15:57 -0500)]
file chooser: Drop unused callbacks

11 years agofile chooser: Remove the search/browse buttons
Matthias Clasen [Wed, 28 Jan 2015 20:37:53 +0000 (15:37 -0500)]
file chooser: Remove the search/browse buttons

Enabling search is now handled in the file chooser dialog,
so we don't need these buttons anymore.

11 years agofile chooser dialog: Add a search button to the header
Matthias Clasen [Wed, 28 Jan 2015 20:36:57 +0000 (15:36 -0500)]
file chooser dialog: Add a search button to the header

This is where we put similar search buttons in applications
and in other dialogs, such as the GtkAppChooserDialog.

11 years agofile chooser: Add a search-mode property
Matthias Clasen [Wed, 28 Jan 2015 20:00:08 +0000 (15:00 -0500)]
file chooser: Add a search-mode property

This will be used to control search from the dialog.

11 years agofile chooser: Clean up includes
Matthias Clasen [Wed, 28 Jan 2015 15:35:49 +0000 (10:35 -0500)]
file chooser: Clean up includes

11 years agoAdwaita: undershoot tweaks
Lapo Calamandrei [Wed, 28 Jan 2015 19:22:05 +0000 (20:22 +0100)]
Adwaita: undershoot tweaks

11 years agoAdwaita: undershoot teeth removal
Lapo Calamandrei [Wed, 28 Jan 2015 19:05:03 +0000 (20:05 +0100)]
Adwaita: undershoot teeth removal

11 years agoAdwaita: shade content-view
Jakub Steiner [Wed, 28 Jan 2015 17:22:59 +0000 (18:22 +0100)]
Adwaita: shade content-view

https://bugzilla.gnome.org/show_bug.cgi?id=740336

11 years agoAdwaita: set the right background color for message dialogs
Lapo Calamandrei [Wed, 28 Jan 2015 17:19:20 +0000 (18:19 +0100)]
Adwaita: set the right background color for message dialogs

11 years agowindow: Only claim the sequence if keeping the grab
Carlos Garnacho [Sun, 25 Jan 2015 17:55:01 +0000 (17:55 +0000)]
window: Only claim the sequence if keeping the grab

If the grab belongs elsewhere, the window won't claim the sequence right
away. The sequence may still be claimed afterwards when window dragging
starts, but simple clicks won't be consumed this way.

This makes it possible to close popovers when clicking on the title region,
while still permitting touch/button 1 interaction for every other purpose.

https://bugzilla.gnome.org/show_bug.cgi?id=743257

11 years agowin32: Don't check the position of a NULL device
Carlos Garnacho [Tue, 27 Jan 2015 11:24:18 +0000 (11:24 +0000)]
win32: Don't check the position of a NULL device

This function is given a barely setup GdkEvent, so the GdkDevice field
is still unset, causing warnings and misbehaviors when the position
is queried for it.

Given that the wintab GTK+ code seems to rely somewhat hard on the wintab
device managing the pointer cursor, query the pointer position from the
pointer itself.

https://bugzilla.gnome.org/show_bug.cgi?id=743330

11 years agowin32: Ensure we can create a window for wintab
Carlos Garnacho [Mon, 26 Jan 2015 14:26:34 +0000 (14:26 +0000)]
win32: Ensure we can create a window for wintab

The window used NULL as a parent window, which defaults internally to
using the root window of the default screen. But at the time wintab is
initialized, there is no default display/screen yet.

Fix this by retrieving this information from the given GdkDeviceManager,
so we don't have to wait for the display to be in place before
initialization.

https://bugzilla.gnome.org/show_bug.cgi?id=743330

11 years agogdkscreen-wayland: Don't leak wl_output objects
Rui Matos [Tue, 27 Jan 2015 17:50:33 +0000 (18:50 +0100)]
gdkscreen-wayland: Don't leak wl_output objects

https://bugzilla.gnome.org/show_bug.cgi?id=743633

11 years agoAdwaita: another approach at the undershoot styling
Lapo Calamandrei [Wed, 28 Jan 2015 16:11:34 +0000 (17:11 +0100)]
Adwaita: another approach at the undershoot styling

11 years agoFix a typo
Matthias Clasen [Wed, 28 Jan 2015 15:08:13 +0000 (10:08 -0500)]
Fix a typo

commit aa1b7fab9c6a2b39 introduced a misuse of G_UNLIKELY in
several places. Fix all those.

11 years agoAlso bundle icons in status/ as resources
Lars Uebernickel [Wed, 28 Jan 2015 14:13:42 +0000 (14:13 +0000)]
Also bundle icons in status/ as resources

https://bugzilla.gnome.org/show_bug.cgi?id=743647

11 years agoIntroduction explaining widget toolkit
Bastian Ilsø [Tue, 27 Jan 2015 11:43:40 +0000 (11:43 +0000)]
Introduction explaining widget toolkit

11 years agoGDK GL context's should associate with "window->impl_window" not "window"
Niels Nesse [Sun, 18 Jan 2015 07:21:35 +0000 (23:21 -0800)]
GDK GL context's should associate with "window->impl_window" not "window"

In some layouts this inconsistency results in crashes in
gdk_gl_texture_from_surface() since it uses gdk_gl_context_get_window() but
the returned window is not the same as the one that is being painted so
"window->current_paint.surface" is NULL. I saw this problem when packing a
GdkGLArea into a GtkPaned.

https://bugzilla.gnome.org/show_bug.cgi?id=743146

11 years agoFix core context creation in GdkGLContext
Niels Nesse [Thu, 15 Jan 2015 01:30:28 +0000 (17:30 -0800)]
Fix core context creation in GdkGLContext

- Specifically request GL version when creating context. Just specifying core
profile bit results in the requested version defaulting to 1.0 which causes
the core profile bit to be ignored and an arbitrary compatability context to be
returned.

- Fix GL painting by removing GL calls that have been depricated by the 3.2 core
profile.

- Additionally remove glInvalidateFramebuffer() call, it is not supported by 3.2
core.

https://bugzilla.gnome.org/show_bug.cgi?id=742953

11 years agoParagraph explaining casting conventions via macro
Bastian Ilsø [Tue, 27 Jan 2015 19:25:40 +0000 (19:25 +0000)]
Paragraph explaining casting conventions via macro

11 years agogtktreeview: Fix horizontal grid lines
Alexander Larsson [Tue, 27 Jan 2015 17:14:26 +0000 (17:14 +0000)]
gtktreeview: Fix horizontal grid lines

The clipping was wrong so it was not drawing grid lines
outside the visible area, which broke due to the pixel cache.

11 years agoclipboard: Add get_default() helper
Jonas Danielsson [Wed, 20 Nov 2013 16:25:59 +0000 (17:25 +0100)]
clipboard: Add get_default() helper

Add helper for getting the main clipboard. This makes
the API usable for bindings (as GdkAtoms aren't usable through
gobject-introspection), and easier to use in C.

https://bugzilla.gnome.org/show_bug.cgi?id=712752

11 years agoUpdated Icelandic translation
Sveinn í Felli [Tue, 27 Jan 2015 14:32:27 +0000 (14:32 +0000)]
Updated Icelandic translation

11 years agocss: Remove _gtk_css_style_property_changes_affect_size()
Benjamin Otte [Tue, 27 Jan 2015 04:03:52 +0000 (05:03 +0100)]
css: Remove _gtk_css_style_property_changes_affect_size()

... and _gtk_css_style_property_changes_affect_font().

Replace it with _gtk_css_style_property_get_mask_affecting().

11 years agoimage: Use _gtk_css_style_property_get_mask_affecting()
Benjamin Otte [Tue, 27 Jan 2015 03:48:35 +0000 (04:48 +0100)]
image: Use _gtk_css_style_property_get_mask_affecting()

... to avoid recomputing the cached surface all the time.

11 years agocss: Add _gtk_css_style_property_get_mask_affecting()
Benjamin Otte [Tue, 27 Jan 2015 03:47:55 +0000 (04:47 +0100)]
css: Add _gtk_css_style_property_get_mask_affecting()

Computes a bitmask for all properties that affect the given flags.

11 years agocss: Remove GtkCssStyleProperty::affects-size
Benjamin Otte [Tue, 27 Jan 2015 03:36:00 +0000 (04:36 +0100)]
css: Remove GtkCssStyleProperty::affects-size

... and GtkCssStyleProperty::affects-font properties. Code now uses
GtkCssStyleProperty::affects instead.

11 years agocss: Add GtkCssStyleProperty::affects property
Benjamin Otte [Tue, 27 Jan 2015 03:32:09 +0000 (04:32 +0100)]
css: Add GtkCssStyleProperty::affects property

11 years agocss: Add a -gtk-icon-theme CSS property
Benjamin Otte [Mon, 26 Jan 2015 23:25:05 +0000 (00:25 +0100)]
css: Add a -gtk-icon-theme CSS property

The property is useless to set (it only allows 'initial', 'inherit' and
'unset' as values), but it is used to track changes to the icon theme.
And as such, it can ensure that widgets can track when they need to
reload icons.

https://bugzilla.gnome.org/show_bug.cgi?id=743341

11 years agoA11y: fix typo when initializing a container cell accessible
Mike Gorse [Mon, 26 Jan 2015 20:59:50 +0000 (14:59 -0600)]
A11y: fix typo when initializing a container cell accessible

Gtk_container_cell_widget_set should chain up to its parent's set
function, not its parent's unset function. This was resulting in
accessibles being erroneously marked defunct after being created.

11 years agoUpdated Properties Hebrew translation
Yosef Or Boczko [Mon, 26 Jan 2015 20:13:52 +0000 (22:13 +0200)]
Updated Properties Hebrew translation

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Mon, 26 Jan 2015 20:12:48 +0000 (22:12 +0200)]
Updated Hebrew translation

11 years agox11: Handle obsolete selection requests without crashing
Matthias Clasen [Sun, 25 Jan 2015 00:31:11 +0000 (19:31 -0500)]
x11: Handle obsolete selection requests without crashing

The ICCCM says:

If the specified property is None, the requestor is an obsolete client.
Owners are encouraged to support these clients by using the specified
target atom as the property name to be used for the reply.

Lets do that, instead of crashing.

https://bugzilla.gnome.org/show_bug.cgi?id=740613

The previous fix for this issue in 732af31424b8f382d was incomplete.

11 years agoTrivial doc fixes
Matthias Clasen [Sun, 25 Jan 2015 00:25:50 +0000 (19:25 -0500)]
Trivial doc fixes

Remove two erroneous quotation marks.

11 years agoGtkFileChooserWidget: Fix a crash for when the widget was unrefed right after setting...
Christoph Reiter [Tue, 20 Jan 2015 16:54:03 +0000 (17:54 +0100)]
GtkFileChooserWidget: Fix a crash for when the widget was unrefed right after setting a current folder.

Keep a reference to the widget while the async operation is ongoing.

https://bugzilla.gnome.org/show_bug.cgi?id=725164

11 years agoGtkFileChooserWidget: remove unused fields and cleanup code.
Christoph Reiter [Tue, 20 Jan 2015 16:48:54 +0000 (17:48 +0100)]
GtkFileChooserWidget: remove unused fields and cleanup code.

These fields are never set, so we don't need the code to clean them up.

https://bugzilla.gnome.org/show_bug.cgi?id=725164

11 years agowayland: Don't claim to support selection notification
Matthias Clasen [Sat, 24 Jan 2015 22:25:43 +0000 (17:25 -0500)]
wayland: Don't claim to support selection notification

We don't support selection notification, so don't claim
we do, only to fail later.

https://bugzilla.gnome.org/show_bug.cgi?id=743229

11 years agoInitialize variables
Matthias Clasen [Sat, 24 Jan 2015 21:45:04 +0000 (16:45 -0500)]
Initialize variables

No need to risk valgrind complaints about initialized
values.

https://bugzilla.gnome.org/show_bug.cgi?id=743422

11 years agoGtkTreeModel: Documentation fix
Debarshi Ray [Wed, 21 Jan 2015 10:28:19 +0000 (11:28 +0100)]
GtkTreeModel: Documentation fix

https://bugzilla.gnome.org/show_bug.cgi?id=743286

11 years agoFix transfer annotation for tree_model parameter of gtk_tree_get_row_drag_data()...
Christoph Reiter [Mon, 19 Jan 2015 17:06:03 +0000 (18:06 +0100)]
Fix transfer annotation for tree_model parameter of gtk_tree_get_row_drag_data() and add nullable, optional

The GtkSelectionData does not own the model set with
gtk_tree_set_row_drag_data so change the out param to "transfer none".
This fixes a crash after multiple DnD actions due to the bindings
stealing a reference each time this function is called.

This also adds nullable and optional annotations for tree_model and path while at it.

https://bugzilla.gnome.org/show_bug.cgi?id=743193

11 years agogtkdnd: Set the dnd window's screen before its visual
Timm Bäder [Fri, 23 Jan 2015 10:21:02 +0000 (11:21 +0100)]
gtkdnd: Set the dnd window's screen before its visual

This makes dnd icons work for widgets on a !default screen.

https://bugzilla.gnome.org/show_bug.cgi?id=743393

11 years agofile chooser: search improvements
Matthias Clasen [Sat, 24 Jan 2015 18:32:31 +0000 (13:32 -0500)]
file chooser: search improvements

Make it so that typing switches to search unless we have a better
use for the key events, and stop search if the entry is emptied.

11 years agofile chooser: Turn off typeahead search
Matthias Clasen [Sat, 24 Jan 2015 13:04:36 +0000 (08:04 -0500)]
file chooser: Turn off typeahead search

It is the third kind of navigation entry in the file chooser after
the location entry and search, and it interacts badly with both
of the others.

11 years agogtk-demo: Show search entry signals
Matthias Clasen [Sat, 27 Dec 2014 23:53:21 +0000 (18:53 -0500)]
gtk-demo: Show search entry signals